package com.ruoyi.web.controller.wq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.wq.domain.WqNoticeComment;
import com.ruoyi.wq.service.IWqNoticeCommentService;

/**
 * 评论通知Controller
 * 
 * @author ruoyi
 * @date 2022-07-01
 */
@RestController
@RequestMapping("/wq/noticeComment")
public class WqNoticeCommentController extends BaseController{
	
    @Autowired
    private IWqNoticeCommentService wqNoticeCommentService;

    /**
     * 查询评论通知列表
     */
    @GetMapping("/list")
    public TableDataInfo list(WqNoticeComment wqNoticeComment){
    	TableDataInfo list = wqNoticeCommentService.getPageList(wqNoticeComment);
    	wqNoticeCommentService.updateGiveRead();
        return list;
    }
   
}
